package com.a;

import java.util.Scanner;

public class arr {

    public static void main(String[] args) {

        double[] scores=new double[3];
        Scanner sc=new Scanner(System.in);
        double sum=0;

        for(int i=0;i<scores.length;i++)
        {
            System.out.println("请输入当前第"+(i+1)+"个评委分数");
            double score=sc.nextDouble();
            scores[i]=score;
            sum+=scores[i];
        }
       float sums=(float)sum/scores.length;
        System.out.println("总分数为："+sum);
        System.out.println("平均分为："+sums);
    }
}
